package com.metaera.app.ui.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.metaera.app.R;
import com.metaera.app.data.model.InformationDetailsResponse;

import java.util.List;

import androidx.annotation.NonNull;

public class LabelAdapter extends BaseQuickAdapter<InformationDetailsResponse.LabelInfo, BaseViewHolder> {

    public LabelAdapter(List<InformationDetailsResponse.LabelInfo> data) {
        super(R.layout.item_article_label, data);

//        setOnItemClickListener((adapter, view, position) -> {
//            Context context = view.getContext();
//            context.startActivity(LabelNewsListActivity.newInstance(context, getItem(position).getId()));
//        });
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, InformationDetailsResponse.LabelInfo item) {
        holder.setText(R.id.tv_name, item.getName());
    }

}
